﻿<controls:ChildWindow xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="Fractals.ExportImageWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
		   xmlns:Controls="clr-namespace:ArgusControls;assembly=ArgusControls"
					  xmlns:ColoredControls="clr-namespace:ArgusControls.ThemeControls;assembly=ArgusControls"
           Title="{Binding Resource.ExportImageWindowTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Background="Black" Foreground="White">
	<StackPanel Margin="5">
		<Border BorderThickness="1" BorderBrush="White" HorizontalAlignment="Center" VerticalAlignment="Top">
			<Image x:Name="image" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0" Stretch="None"/>
		</Border>
		<Grid HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5,0,0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<TextBlock Text="{Binding Resource.FractalParameterPixelWidth, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Center"/>
			<toolkit:NumericUpDown x:Name="nudWidth" Maximum="4000" Minimum="10" Value="450" Margin="5,0,0,0" Grid.Column="1" />
			<TextBlock Text="{Binding Resource.FractalParameterPixelHeight, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Center" Grid.Row="1" Margin="0,5,0,0"/>
			<toolkit:NumericUpDown x:Name="nudHeight" Maximum="4000" Minimum="10" Value="300" Margin="5,5,0,0" Grid.Row="1" Grid.Column="1" />
		</Grid>
		<StackPanel Orientation="Horizontal" Margin="0,5,0,0" HorizontalAlignment="Right">
			<ColoredControls:ThemeButton x:Name="bCalculatePreview" Content="{Binding Resource.ExportImageWindowCalculatePreview, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Click="bCalculatePreview_Click"/>
			<ColoredControls:ThemeButton x:Name="bCancel" Content="{Binding Resource.ExportImageWindowCancel, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="5,0,0,0" Click="bCancel_Click"/>
			<ColoredControls:ThemeButton x:Name="bSave" Content="{Binding Resource.ExportImageWindowSave, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="5,0,0,0" Click="bSave_Click"/>
		</StackPanel>
	</StackPanel>
</controls:ChildWindow>